Customizing the Targeted Content Widget
To create a custom version of the Targeted Content widget (for example, to add rule templates), follow these steps.
- Open the
site root/widgets/Edit TargetedContent.ascx.cs
file.
- Create a class, for example, MyRuleTemplate, that inherits Ektron.RuleEditor.RuleTemplate in #region Rule Templates.
- Modify private void AddAllRuleTemplates.
- Add an instance of your class to the rest of the rule templates. For example,
AddRuleTemplate(new MyRuleTemplate());